package com.zjhb.common.enumutil;

public enum Verify {
	WaitVerify("0", "待审核"),
	WaitKeep("1", "待维修"),
	RefuseVerify("2", "拒绝"),
	RefuseKeep("3", "拒绝"),
	Finish("5", "完成");

	private String key;
	private String value;

	private Verify(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static Verify parse(String key) {
		Verify [] areas=Verify.values();
		for(Verify a:areas){
			if(a.getKey().equals(key)){
				return a;
			}
		}
        return null;
	}

	public static Verify parseValue(String value) {
		Verify [] areas=Verify.values();
		for(Verify a:areas){
			if(a.getValue().equals(value)){
				return a;
			}
		}
        return null;
	}



}
